package com.boscloud.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.boscloud.pojo.PostGoodMvtResult;
import com.boscloud.pojo.RecycleToneSlotsPost;
import com.boscloud.pojo.StorageLocation;
import com.boscloud.pojo.RecycleToneSlots;
import com.boscloud.service.RecycleToneSlotsServices;
import com.boscloud.service.RecycleToneSlotsPostServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.boscloud.service.StorageLocationService;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@CrossOrigin //允许跨域
@RestController

public class RecycleToneSlotsController {
    @Autowired
    private RecycleToneSlotsServices RecycleToneSlotsServices;
    @PostMapping("/RecycleToneSlotsList")//扫描条码--获取吨槽回收桶数据
    public List<RecycleToneSlots> getRecycleToneSlotsList(@RequestBody Map<String, Object> params) throws IOException {
        Map<String, String> headers = new HashMap<String, String>();
        headers.put("PORTID","ITMS011");//接口ID
        return RecycleToneSlotsServices.getRecycleToneSlotsList(params,headers);
    }
}